package com.tedu.openmedical.hspt.service.impl;

import com.tedu.openmedical.hspt.mapper.HsptMapper;
import com.tedu.openmedical.hspt.pojo.dto.HsptQuery;
import com.tedu.openmedical.hspt.pojo.vo.HsptVO;
import com.tedu.openmedical.hspt.service.HsptService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
@Slf4j
public class HsptServiceImpl implements HsptService {
    @Autowired
    private HsptMapper hsptMapper;
    @Override
    public List<HsptVO> select(HsptQuery hsptQuery) {
        log.debug("病案列表查询 hsptQuery:{}",hsptQuery);
        log.debug("日期：getCreateTime={}",hsptQuery.getCreateTime());
        List<HsptVO> hsptVOList=hsptMapper.select(hsptQuery);
        log.debug("查询结果：hsptVOList={}",hsptVOList);
        return hsptVOList;
    }
}
